package cz.muni.fi.pa036is.dto;

import java.io.Serializable;
import java.sql.Date;

/**
 *
 * @author Shebik
 */
public class MatchGridTO implements Serializable {

    private Long id;
    private String player1FirstName;
    private String player1LastName;
    private String player2FirstName;
    private String player2LastName;
    private String seasonName;
    private Date seasonStartDate;
    private Date seasonEndDate;
    private Date dateAndTime;
    private String finalScore;

    public Date getDateAndTime() {
        return dateAndTime;
    }

    public void setDateAndTime(Date dateAndTime) {
        this.dateAndTime = dateAndTime;
    }

    public String getFinalScore() {
        return finalScore;
    }

    public void setFinalScore(String finalScore) {
        this.finalScore = finalScore;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPlayer1FirstName() {
        return player1FirstName;
    }

    public void setPlayer1FirstName(String player1FirstName) {
        this.player1FirstName = player1FirstName;
    }

    public String getPlayer1LastName() {
        return player1LastName;
    }

    public void setPlayer1LastName(String player1LastName) {
        this.player1LastName = player1LastName;
    }

    public String getPlayer2FirstName() {
        return player2FirstName;
    }

    public void setPlayer2FirstName(String player2FirstName) {
        this.player2FirstName = player2FirstName;
    }

    public String getPlayer2LastName() {
        return player2LastName;
    }

    public void setPlayer2LastName(String player2LastName) {
        this.player2LastName = player2LastName;
    }

    public Date getSeasonEndDate() {
        return seasonEndDate;
    }

    public void setSeasonEndDate(Date seasonEndDate) {
        this.seasonEndDate = seasonEndDate;
    }

    public String getSeasonName() {
        return seasonName;
    }

    public void setSeasonName(String seasonName) {
        this.seasonName = seasonName;
    }

    public Date getSeasonStartDate() {
        return seasonStartDate;
    }

    public void setSeasonStartDate(Date seasonStartDate) {
        this.seasonStartDate = seasonStartDate;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final MatchGridTO other = (MatchGridTO) obj;
        if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 71 * hash + (this.id != null ? this.id.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "MatchGridTO{" + "id=" + id
                + "player1FirstName=" + player1FirstName
                + "player1LastName=" + player1LastName
                + "player2FirstName=" + player2FirstName
                + "player2LastName=" + player2LastName
                + "seasonName=" + seasonName
                + "seasonStartDate=" + seasonStartDate
                + "seasonEndDate=" + seasonEndDate
                + "dateAndTime=" + dateAndTime
                + "finalScore=" + finalScore + '}';
    }
    
}
